using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DanielSig.UnityExtensions;

[RequireComponent(typeof(Collider))]
public class Observable : MonoBehaviour
{
	public static HashSet<Observable> Observables = new HashSet<Observable>();
	public SensationType ObservableAs;
	
	void Start()
	{
		Observables.Add(this);
	}
	void OnDestroy()
	{
		Observables.Remove(this);
	}
	
	void Observation(Value<SensationType> value)
	{
		value.value = ObservableAs;
	}
}

